<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }

     .left,.right{
         width: 300px;
         height: 300px;
     }

     .left{
        border: 2px solid rebeccapurple;
         /* margin-bottom: -30px; */
     }

     .right{
         border: 2px solid greenyellow;
         /* margin-top: -30px; */
     }

     .out{
          width: 450px;

         /* height: 470px;  */
         background-color: hotpink;
         padding-top: -200px;
         padding-left: 50px;
     }

     .inner{
         width: 200px;
         height: 200px;
         background-color: indigo;
     }

    </style>
</head>
<body>
    <!-- <div class="left"></div>
    <div class="right"></div> -->

    <div class="out">
        <div class="inner"></div>
    </div>
</body>
</html>